/* static/css/style.css */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    gap: 1px;
    background-color: #ccc;
    border: 10px solid white; /* 添加一个白色粗边框 */
    border-radius: 10px; /* 可选：添加圆角效果 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* 可选：添加阴影效果 */
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.revealed {
    background-color: #ddd;
}

.flagged {
    background-color: #fdd;
}

.mine {
    background-color: #f00;
}

.controls {
    margin-top: 20px;
}

.flag-mode {
    background-color: #fdd;
}

@media (max-width: 600px) {
    .grid {
        gap: 1px; /* 缩小间距 */

    }
    .cell {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}